package com.woniu.new_orange.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;

/**
 * @TableName visit_record
 */
@Data
public class VisitRecord implements Serializable {
    private Integer visitRecordId;

    private Integer userId;
    @NotBlank(message = "用户名不能为空")
    private String visitRecordTouristName;

    private String visitRecordTouristPhone;

    private String visitRecordTouristDesination;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date visitRecordTime;

    private Integer serviceStaffId;
    @NotBlank(message = "客服id不能为空")
    private String visitRecordDesc;

    private Integer visitRecordBy1;

    private String visitRecordBy2;

    private static final long serialVersionUID = 1L;
}